package com.yunyi.system.service;

import com.yunyi.system.domain.EmrCase;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import com.yunyi.common.core.domain.AjaxResult;
import com.yunyi.system.domain.EmrCase;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 谨
* @description 针对表【emr_case(会诊病例)】的数据库操作Service
* @createDate 2023-09-06 15:56:34
*/
public interface EmrCaseService extends IService<EmrCase> {


    public List<EmrCase> getEmrCaseMsgListEmrCases(String caseIdOrName);

    AjaxResult getTbt();

    AjaxResult getLastOperation(Integer pageNum,Integer pageSize);

    AjaxResult getTbd(Integer status,Integer pathology,String sendHospital, String caseNo, String name, Integer pageNum, Integer pageSize);

    AjaxResult allotCase(List<String> caseList);

    AjaxResult getDiagnosticReport(String id);

    AjaxResult revocation(String caseId,String reason);

    /**
     * 添加病例
     * @param emrCase
     * @return
     */
    AjaxResult saveByEmrCase(EmrCase emrCase);

    /**
     * 根据id删除病例
     * @param id
     * @return
     */
    AjaxResult deleteById(String id);

    /**
     * 条件查询诊断信息
     * @param emrCase
     * @return
     */
    List<EmrCase> selectEmrCaseList(EmrCase emrCase);

    /**
     * 根据会诊病例ID查询具体就诊人
     * @param id
     * @return
     */
    EmrCase selectEmrCaseById(Long id);

}
